package com.iona.domain;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;

@Entity
public class PartDis extends BaseEntity {
	private String name;
	@Column(length = 2000)
	private String description;
	private String semester;
	private String control;
	@OneToMany
	@JoinColumn(name = "partdis_fk")
	private List<PartDisPurview> purviewList;
	@OneToMany
	@JoinColumn(name = "partdisstudywork_fk")
	private List<PartDisStudyWork> studyworkList;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<PartDisPurview> getPurviewList() {
		if(purviewList == null){
		purviewList = createList();
		}
		return purviewList;
	}

	public void setPurviewList(List<PartDisPurview> purviewList) {
		this.purviewList = purviewList;
	}

	public List<PartDisStudyWork> getStudyworkList() {
		if(studyworkList == null){
		studyworkList = createList();
		}
		return studyworkList;
	}

	public void setStudyworkList(List<PartDisStudyWork> studyworkList) {
		this.studyworkList = studyworkList;
	}

	public String getSemester() {
		return semester;
	}

	public void setSemester(String semester) {
		this.semester = semester;
	}

	public String getControl() {
		return control;
	}

	public void setControl(String control) {
		this.control = control;
	}

	
}
